PROJECTNAME=cellsvd-paper
SLIDESNAME=cellsvd-presentation
DEPLOYDIR?=${HOME}/www

main:
	pdflatex -halt-on-error ${PROJECTNAME}
	bibtex ${PROJECTNAME}
	pdflatex -halt-on-error ${PROJECTNAME}
	pdflatex -halt-on-error ${PROJECTNAME}

slides:
	pdflatex -halt-on-error ${SLIDESNAME}
	bibtex ${SLIDESNAME}
	pdflatex -halt-on-error ${SLIDESNAME}
	pdflatex -halt-on-error ${SLIDESNAME}

install:
	cp ${PROJECTNAME}.pdf ${SLIDESNAME}.pdf ${DEPLOYDIR}

clean:
	rm -f *.aux *.log *.nav *.out *.pdf *.snm *.toc *.bbl *.blg
